package com.corp.bff.controller;

import com.corp.one.spi.RemoteOneClient;
import com.corp.platform.common.response.RespResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Keanu
 * @Date 2020/7/2 0002 17:23
 * @Version
 **/
@RestController
public class BffController {
    @Autowired
    private RemoteOneClient remoteOneClient;

    @GetMapping("bff/{name}")
    public RespResult<String> bff(@PathVariable String name) {
        return remoteOneClient.serviceOne(name);
    }
}
